const router = require("koa-router")();
const ShoesModel = require("../../models/shoesList");
const {mongoList} = require("../../static/data");
router.get("/m1/shoeAll",async ctx=>{
    var res = [];
    for(let m of mongoList){
        var result = await ShoesModel(m).find({})
        res.push(...result)
    }
    ctx.body = {
        code:200,
        res,
        msg:`请求成功!共有数据${res.length}条。`
    }
})
module.exports = router;